import request from '@/utils/request'
// -------- 内容监管--图片管理--文件夹图片列表 --------

let BASE_ADDRESS = '/work/photo'

// 分页查询
/* /work/photo/getInfoFolder */
export const getPhotoList_ByFolderId = (data) => {
    return request({
        url: `${BASE_ADDRESS}/getInfoFolder`,
        method: 'get',
        params: data
    })
}

//更新图片名称
/* /work/photo/edit */
export const updatePhotoName_ById = (data) => {
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: 'put',
        data: data
    })
}

//上传图片
/* /work/photo/add */
export const addPhoto = (data) => {
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: 'post',
        data: data
    })
}

//删除图片
/* /work/photo/remove */
export const deletePhoto = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: 'delete',
        data: data
    })
}